//
//  main.m
//  13-Foundation-ARC注意
//
//  Created by Jason on 15/10/14.
//  Copyright © 2015年 Jason. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Card.h"

/*
 注意 两个对象在互相引用的同时,必须有一个是weak.否则不会释放对象
 
 */
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        Person *p = [[Person alloc] init];
        
        Card *c = [[Card alloc] init];
        
        p.card = c;
        
        c.person = p;
        
        
        
        
    }
    return 0;
}
